All files / src/app/admin/support/articles/[id] page.tsx

0% Statements 0/11
100% Branches 0/0
0% Functions 0/1
0% Lines 0/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12                       
import { redirect } from 'next/navigation';

interface PageProps {
  params: Promise<{ id: string }>;
}

export default async function ArticleDetailPage({ params }: PageProps) {
  const { id } = await params;
  // Redirect to edit page since viewing happens on public side
  redirect(`/admin/support/articles/${id}/edit`);
}